<fieldset>
	<legend>Thông tin chi tiết hồ sơ</legend>
	<table class="job_info large-12 columns job_detail">
		<tbody>
			<tr>
				<td class="first_col">Tên hồ sơ:</td>
				<td><?php echo $info['ten_hs'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Địa chỉ mong muốn:</td>
				<td><?php echo $info['dia_chi'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Lương mong muốn:</td>
				<td><?php echo $info['luong'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Hình thức thực tập:</td>
				<td><?php echo $info['hinhthuc_tt'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Kinh nghiệm:</td>
				<td>
					<?php
						$kinh_nghiem = explode("\n",$info['kinh_nghiem']);
						foreach ($kinh_nghiem as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Kỹ năng:</td>
				<td>
					<?php
						$ki_nang = explode("\n",$info['ki_nang']);
						foreach ($ki_nang as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Mục tiêu trong tương lai:</td>
				<td>
					<?php
						$muc_tieu = explode("\n",$info['muc_tieu']);
						foreach ($muc_tieu as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Thành tích:</td>
				<td>
					<?php
						$thanh_tich = explode("\n",$info['thanh_tich']);
						foreach ($thanh_tich as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Các bằng cấp đang có:</td>
				<td>
					<?php
						$bang_cap = explode("\n",$info['bang_cap']);
						foreach ($bang_cap as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Thời gian tốt nghiệp:</td>
				<td><?php echo date('m-Y',strtotime($info['thoigian_tn'])) ?></td>
			</tr>
			<?php
				if($info['cv']){
					$file = trim(strrchr($info['cv'], "/"),"/");
					echo "<tr>";
					echo "<td class='first_col'>File đính kèm:";
					echo "<td><a href='".base_url()."employer/download/".$file."'>".$file."</a></td>";
					echo "</tr>";
				}
			?>
		</tbody>
	</table>
</fieldset>
<hr>
<div id="printableArea">
<fieldset>
	<legend>Thông tin chi tiết hồ sơ</legend>
	<table class="job_info large-12 columns job_detail">
		<tbody>
			<tr>
				<td class="first_col">Tên hồ sơ:</td>
				<td><?php echo $info['ten_hs'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Địa chỉ mong muốn:</td>
				<td><?php echo $info['dia_chi'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Lương mong muốn:</td>
				<td><?php echo $info['luong'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Hình thức thực tập:</td>
				<td><?php echo $info['hinhthuc_tt'] ?></td>
			</tr>
			<tr>
				<td class="first_col">Kinh nghiệm:</td>
				<td>
					<?php
						$kinh_nghiem = explode("\n",$info['kinh_nghiem']);
						foreach ($kinh_nghiem as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Kỹ năng:</td>
				<td>
					<?php
						$ki_nang = explode("\n",$info['ki_nang']);
						foreach ($ki_nang as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Mục tiêu trong tương lai:</td>
				<td>
					<?php
						$muc_tieu = explode("\n",$info['muc_tieu']);
						foreach ($muc_tieu as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Thành tích:</td>
				<td>
					<?php
						$thanh_tich = explode("\n",$info['thanh_tich']);
						foreach ($thanh_tich as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Các bằng cấp đang có:</td>
				<td>
					<?php
						$bang_cap = explode("\n",$info['bang_cap']);
						foreach ($bang_cap as $str) {
						 	echo $str."<br />";
						}
					?>
				</td>
			</tr>
			<tr>
				<td class="first_col">Thời gian tốt nghiệp:</td>
				<td><?php echo date('m-Y',strtotime($info['thoigian_tn'])) ?></td>
			</tr>
			<?php
				if($info['cv']){
					$file = trim(strrchr($info['cv'], "/"),"/");
					echo "<tr>";
					echo "<td class='first_col'>File đính kèm:";
					echo "<td>".$file."</td>";
					echo "</tr>";
				}
			?>
		</tbody>
	</table>
</fieldset></div>
<button type="button" onclick="printDiv('printableArea')">In Hồ Sơ</button>
<script type="text/javascript">
function printDiv(divName) {
    var printContents = document.getElementById(divName).innerHTML;
    var originalContents = document.body.innerHTML;
    document.body.innerHTML = printContents;
    window.print();
    document.body.innerHTML = originalContents;
}
</script>